package com.oa.common.dto;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;

/**
 * @name 表单的数据传输类
 * @author Yang
 * @date 2018-07-13
 * @version 1.0.1
 */
public class FormDto implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -6296920221651570968L;

    /** 名称 **/
    private String name;


    /** 输入框的默认值 **/
    private String inputValue;

    /** 类型 **/
    private int inputType;

    /** 表单类型 **/
    private int fileType;

    /** 表单的说明 **/
    private String[] options;

    /** 表单验证方法 **/
    private String confiraction;

    /** 字段类型 **/
    private int dbType;

    /** 模板的id **/
    private Long typeId;

    /** 宽 */
    private String w;

    /** 高 **/
    private String h;

    /** 虹口见 **/
    private String magnificent;

    /** 表单的id **/
    private Long id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getInputValue() {
        return inputValue;
    }

    public void setInputValue(String inputValue) {
        this.inputValue = inputValue;
    }

    public int getInputType() {
        return inputType;
    }

    public void setInputType(int inputType) {
        this.inputType = inputType;
    }

    public int getFileType() {
        return fileType;
    }

    public void setFileType(int fileType) {
        this.fileType = fileType;
    }

    public String getConfiraction() {
        return confiraction;
    }

    public void setConfiraction(String confiraction) {
        this.confiraction = confiraction;
    }

    public int getDbType() {
        return dbType;
    }

    public void setDbType(int dbType) {
        this.dbType = dbType;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getW() {
        return w;
    }

    public void setW(String w) {
        this.w = w;
    }

    public String getH() {
        return h;
    }

    public void setH(String h) {
        this.h = h;
    }

    public String getMagnificent() {
        return magnificent;
    }

    public void setMagnificent(String magnificent) {
        this.magnificent = magnificent;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "FormDto{" +
                "name='" + name + '\'' +
                ", inputValue='" + inputValue + '\'' +
                ", inputType=" + inputType +
                ", fileType=" + fileType +
                ", options=" + Arrays.toString(options) +
                ", confiraction='" + confiraction + '\'' +
                ", dbType=" + dbType +
                ", typeId=" + typeId +
                ", w='" + w + '\'' +
                ", h='" + h + '\'' +
                ", magnificent='" + magnificent + '\'' +
                ", id=" + id +
                '}';
    }

    public String[] getOptions() {
        return options;
    }

    public void setOptions(String[] options) {
        this.options = options;
    }
}
